import {FormRuleUtil} from "@/utils";



export const EXCHANGE_EDIT = {
    BODY: {
        kind: "",
        proportion: 0,
        number: 0

    },
    RULES: {
        kind: FormRuleUtil.strRule("使用类型", true, ),
        proportion: FormRuleUtil.numRule("比例/数量", true,  ),
        number: FormRuleUtil.numRule("生成数量", true),
    }
}


export const LEVEL_EDIT = {
    BODY: {
        code: 0,
        name: "",
        nickName: '',
        description: "",

        icon:null,
        introduceImg:null ,
        rule: { upRts:0 ,mzTcBfb:0 , wyTcBfb:0 }
    },
    RULES: {
        code: FormRuleUtil.numRule("等级规则序号", true, 0, 100),
        name: FormRuleUtil.strRule("等级规则名称", true, 20),
        nickName: FormRuleUtil.strRule("等级前端别名", true, 20),
        description: FormRuleUtil.strRule("等级规则描述", true, 400),
        icon: FormRuleUtil.strRule("等级图标", true),
        introduceImg: FormRuleUtil.strRule("等级介绍图", true),
        rule: {
            upRts: FormRuleUtil.numRule("升级人头数", true, 1, 99999),
            mzTcBfb: FormRuleUtil.numRule("买猪提成百分比", true, 0, 100),
            wyTcBfb: FormRuleUtil.numRule("喂养提成百分比", true, 0, 100),


        }

    }
}



export const INVITER_EDIT = {
    BODY: {
        avatar: "",
        name: "",
        phone: "",
        level:{id:null},
        state: true

    },
    RULES: {
        name: FormRuleUtil.strRule("经理姓名", true, 20),
        phone: FormRuleUtil.strRule("手机号码", true, 20, 'mobile'),
        avatar: FormRuleUtil.strRule("经理头像", false, 0, 'url'),
        level: {id:FormRuleUtil.strRule("代理等级", true)},
        state: FormRuleUtil.boolRule("账号状态", true),


    }
}
